class_name 野马Handler extends BaseHandler

# 其实就是大子移动，为了播放音效拆一个方法出来
func 践踏(data:Dictionary):
	var point_start = gameManager.map_points.get(data.start)
	var point_end = gameManager.map_points.get(data.end) as Point
	var big = point_start.big as Big
	big.moveBefore()
	point_end.big = big
	point_start.big = null
	big.point = point_end
	big.position = point_end.position
	# 玩家是自己或者观战复盘
	if big.player.is_me || point_end.is_view || gameManager.me_player == null:
		ObjectManager.soundManager.play(SoundType.野马_践踏)
		gameManager.layer_effect.bigAttack(point_end)
